package com.huizhan.web.model;

import javax.persistence.*;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.*;
import io.swagger.annotations.*;
import java.util.Date;

/**
 * @Description 验证 
 * @Author  yanluping@outlook.com
 * @Date 2020-01-09 19:15:53 
 */
@JsonIgnoreProperties({"hibernateLazyInitializer","handler"})
@Entity
@ApiModel(value =  "验证")
@Table ( name ="Validator")
public class Validator  implements Serializable {

	private static final long serialVersionUID =  5508427858926548581L;

	/**
	 * 主键
	 */
	@ApiModelProperty(value = "主键")
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
   	@Column(name = "Validator_Id" )
	private Long validatorId;

	/**
	 * 手机
	 */
	@ApiModelProperty(value = "手机")
   	@Column(name = "phone" )
	private String phone;

	/**
	 * 值
	 */
	@ApiModelProperty(value = "值")
   	@Column(name = "Code" )
	private String code;

	/**
	 * IP
	 */
	@ApiModelProperty(value = "IP")
   	@Column(name = "Ip" )
	private String ip;

	/**
	 * 通过日期
	 */
	@ApiModelProperty(value = "通过日期")
   	@Column(name = "IsPassage" )
	private Integer isPassage;

	/**
	 * 创建日期
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@ApiModelProperty(value = "创建日期",example = "2018-10-01 12:18:48")
   	@Column(name = "CreateDate" )
	private Date createDate;

	/**
	 * 签到日期
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@ApiModelProperty(value = "签到日期",example = "2018-10-01 12:18:48")
   	@Column(name = "SignDate" )
	private Date signDate;

	public Long getValidatorId() {
		return this.validatorId;
	}

	public void setValidatorId(Long validatorId) {
		this.validatorId = validatorId;
	}

	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getIp() {
		return this.ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public Integer getIsPassage() {
		return this.isPassage;
	}

	public void setIsPassage(Integer isPassage) {
		this.isPassage = isPassage;
	}

	public Date getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getSignDate() {
		return this.signDate;
	}

	public void setSignDate(Date signDate) {
		this.signDate = signDate;
	}

	@Override
	public String toString() {
		return "{" +
					"validatorId='" + validatorId + '\'' +
					"phone='" + phone + '\'' +
					"code='" + code + '\'' +
					"ip='" + ip + '\'' +
					"isPassage='" + isPassage + '\'' +
					"createDate='" + createDate + '\'' +
					"signDate='" + signDate + '\'' +
				'}';
	}

}
